package com.jml.enCache和map实现单个jvm缓存.mapper;

import com.jml.enCache和map实现单个jvm缓存.entity.Users;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

@CacheConfig(cacheNames = {"userCache"})
public interface UserMapper {
	@Select("SELECT ID ,NAME,AGE FROM sys_mean where id=#{id}")
	@Cacheable
	List<Users> getUser(@Param("id") Long id);
}
